package online.shenme.test.hero;

public class Hero {
    private int hp;
    private int mp;
    private int strength;
    private int defense;
    {
        Skill skill1=new Skill();
        Skill skill2=new Skill();
        Skill skill3=new Skill();
    }
    public void speak(){

    }
    public Hero() {
    }

    public Hero(int hp, int mp, int strength, int defense) {
        this.hp = hp;
        this.mp = mp;
        this.strength = strength;
        this.defense = defense;
    }

    public int getHp() {
        return hp;
    }

    public void setHp(int hp) {
        this.hp = hp;
    }

    public int getMp() {
        return mp;
    }

    public void setMp(int mp) {
        this.mp = mp;
    }

    public int getStrength() {
        return strength;
    }

    public void setStrength(int strength) {
        this.strength = strength;
    }

    public int getDefense() {
        return defense;
    }

    public void setDefense(int defense) {
        this.defense = defense;
    }
}

class Skill{
private String name;
private int useMp;
private int strengthUp;

    public Skill() {
    }

    public Skill(String name, int useMp, int strengthUp) {
        this.name = name;
        this.useMp = useMp;
        this.strengthUp = strengthUp;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getUseMp() {
        return useMp;
    }

    public void setUseMp(int useMp) {
        this.useMp = useMp;
    }

    public int getStrengthUp() {
        return strengthUp;
    }

    public void setStrengthUp(int strengthUp) {
        this.strengthUp = strengthUp;
    }
}